package net.microfigure.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 林景锋
 * @since 2018-06-25
 */
@TableName("family_info")
public class FamilyInfo extends Model<FamilyInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 成员编号
     */
	@TableField("family_info_no")
	private Integer familyInfoNo;
    /**
     * 家庭编号
     */
	@TableField("family_no")
	private String familyNo;
    /**
     * 身份证号
     */
	@TableField("card_no")
	private String cardNo;
    /**
     * 姓名
     */
	private String name;
    /**
     * 性別
     */
	private String gender;
    /**
     * 年齡
     */
	private Integer age;
    /**
     * 家庭住址
     */
	private String address;
    /**
     * 联系方式
     */
	private String contact;
    /**
     * 与户主关系
     */
	@TableField("rela_type")
	private String relaType;
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
	@TableField("part_state")
	private String partState;
	@TableField("ill_card_no")
	private String illCardNo;


	public Integer getFamilyInfoNo() {
		return familyInfoNo;
	}

	public void setFamilyInfoNo(Integer familyInfoNo) {
		this.familyInfoNo = familyInfoNo;
	}

	public String getFamilyNo() {
		return familyNo;
	}

	public void setFamilyNo(String familyNo) {
		this.familyNo = familyNo;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getRelaType() {
		return relaType;
	}

	public void setRelaType(String relaType) {
		this.relaType = relaType;
	}



	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getPartState() {
		return partState;
	}

	public void setPartState(String partState) {
		this.partState = partState;
	}

	public String getIllCardNo() {
		return illCardNo;
	}

	public void setIllCardNo(String illCardNo) {
		this.illCardNo = illCardNo;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
